package com.guchenbo.scala.c3

/**
 * @author guchenbo
 * @date 2022/3/15
 */
class AccessCla {
  private var a = "1"
  var b = "b"
  protected val c = "c"
  private[c3] val d = "d"

  def print(): Unit = {
    println(s"a=$a,b=$b,c=$c")
  }
}

object AccessCla {
  def main(args: Array[String]): Unit = {
    val demo = new AccessCla
    demo.a
    demo.b
    demo.c
    demo.d
  }
}
